<?php
require_once 'ThumbLib.inc.php';
$thumb = PhpThumbFactory::create("images/hoasen.jpg");
//Resize image
//$thumb -> adaptiveResize(300, 300);
//$thumb -> cropFromCenter(200,200);
$thumb -> show();